package com.sz.biz.logistics.ord.enums;

import com.sz.common.base.dao.ext.IEnum;

/**
 * Package: com.sz.biz.logistics.ord.enums<br>
 * Function: 给供应商发的消息的code
 * Author: yanhong.xiao.<br>
 * Date: 2017-05-19 13:55:00.
 */
public enum TrackMessageToServiceEnum implements IEnum {
    PLACE_TRADE_ORDER("PLACE_TRADE_ORDER", "请联系发件人，前去处理"),
    UPDATE_TRADE_ORDER("UPDATE_TRADE_ORDER", "订单信息变更"),
    CARGO_TRANSPORT("CARGO_TRANSPORT", "运输货物"),
    MSG_RESEND("MSG_RESEND", "重发消息") ,
    MSG_BLOCK_OUTGOING("MSG_BLOCK_OUTGOING", "阻塞不让发货") ,
    MSG_OUTGOING("MSG_OUTGOING", "请继续发货") ;
    private String code;
    private String name;

    TrackMessageToServiceEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    public static TrackMessageToServiceEnum valueOfEnum(String code) {
        TrackMessageToServiceEnum[] iss = values();
        for (TrackMessageToServiceEnum cs : iss) {
            if (cs.getCode().equals(code)) {
                return cs;
            }
        }
        return null;
    }
}
